import React from 'react';
import { history } from 'umi';

const GoodsDetail = () => {
  const getComment = () => {
    history.push({
      pathname: '/goods/3/comment',
      query: {
        asd: 'qwe',
      },
    });
  };

  return (
    <>
      <h3>page goods-detail</h3>
      <button onClick={getComment}>命令式跳转</button>
    </>
  );
};

export default GoodsDetail;
